import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      component: () => import('../views/HouseXingAdd.vue')
    }
    , 
    {
      path: '/list',
      component: () => import('../views/HouseXingList.vue')
    }, {
      path: '/upd',
      component: () => import('../views/HouseXingUpd.vue')
    }, {
      path: '/addn',
      component: () => import('../views/HouseNumberAdd.vue')
    }, {
      path: '/listn',
      component: () => import('../views/HouseNuberList.vue')
    }, {
      path: '/updn',
      component: () => import('../views/HouseNumberUpd.vue')
    }

  ]
})

export default router
